<?php

namespace App\Http\Controllers\Web\MiniprogramToGame;

use App\Http\Controllers\Controller;
use App\Models\MtgGameFaqData;
use App\Models\MtgGameFaqType;
use Illuminate\Http\Request;

class GameFaqController extends Controller
{
    public function article(Request $request, $id)
    {
        $row = MtgGameFaqData::find($id);
        $type = MtgGameFaqType::find($row->type_id);

        return view('mtg.gamefaq.article', [
            'row'  => $row,
            'type' => $type,
        ]);
    }
}
